#  rest_framework
from rest_framework import serializers

#  models
from user.models import UserInfo, UserToken


class UserInfoSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = UserInfo
        fields = (
            'url',
            'id',
            'user_type',
            'username',
            'password',
        )

class UserTokenSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = UserToken
        fields = (
            'url',
            'id',
            'user',
            'token',
        )
